package com.itheima.oopadvanced.innerclass_anonymous;

/**
 * @author Anomaly
 * @date 2022/12/28 17:05
 */
public class Test {
    public static void main(String[] args) {
        Animal animal = new Animal() {
            @Override
            public void run() {
                System.out.println("Animal-run()");
            }
        };
        animal.run();
    }
}

abstract class Animal {
    public abstract void run();
}